const { series, src, dest, watch } = require("gulp");
const ts = require("gulp-typescript");

const transform = () => {
  return src("src/**/*.ts")
    .pipe(
      ts({
        target: "ES6",
        module: "commonjs",
      })
    )
    .pipe(dest("lib"));
};

const dev = () => {
  watch("src/**/*.ts", transform);
};

module.exports = {
  dev,
};
